fix(clerk-js): Display alert on plan details error#6384
Conversation
🦋 Changeset detectedLatest commit: 12a55c1 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
📝 WalkthroughWalkthroughA new changeset file documents a patch update for the Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (5)
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
@clerk/agent-toolkit
@clerk/astro
@clerk/backend
@clerk/chrome-extension
@clerk/clerk-js
@clerk/dev-cli
@clerk/elements
@clerk/clerk-expo
@clerk/expo-passkeys
@clerk/express
@clerk/fastify
@clerk/localizations
@clerk/nextjs
@clerk/nuxt
@clerk/clerk-react
@clerk/react-router
@clerk/remix
@clerk/shared
@clerk/tanstack-react-start
@clerk/testing
@clerk/themes
@clerk/types
@clerk/upgrade
@clerk/vue
commit: |
|
|
||
| const BodyFiller = ({ children }: { children: React.ReactNode }) => { | ||
| return ( | ||
| <Drawer.Body> |
There was a problem hiding this comment.
Can we apply the padding to the body? Instead of needing the nested flex container without a descriptor?
There was a problem hiding this comment.
possibly add a new variant prop to body padded? to create a consistent padding usage
There was a problem hiding this comment.
the variant does not make much sense, I think it is better to use space.$4 everywhere. There are other places using this long with other settings. I will increase complexity to try to support both.
| const { translateError } = useLocalizations(); | ||
| return ( | ||
| <BodyFiller> | ||
| <Alert |
There was a problem hiding this comment.
Can this be full width?
There was a problem hiding this comment.
Do you want to force it ? If the error message is large enough it will occupy the necessary space.
| display: 'flex', | ||
| flexDirection: 'column', | ||
| alignItems: 'center', | ||
| justifyContent: 'center', | ||
| flex: 1, | ||
| overflowY: 'auto', |
There was a problem hiding this comment.
body already handles a majority of these.
javascript/packages/clerk-js/src/ui/elements/Drawer.tsx
Lines 351 to 355 in 79b4f03


Description
Checklist
pnpm testruns as expected.pnpm buildruns as expected.Type of change
Summary by CodeRabbit